const http = require('http')
function Application() {
    this.router = new Router
}
Application.prototype.get = function (path, handler) {
    this.router.get(path, handler)
}
Application.prototype.listen = function (...args) {
    const server = http.createServer((req, res) => {
        function done() {
            res.end(`Cannot ${req.method} ${req.url} my`)
        }
        this.router.handle(req, res, done)

    });
    server.listen(...args);
}
module.exports = Application